﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class TableCategory
    {
        #region 属性
        private int _id;
        private string _name;
        private int _minConsumption;
        private int _state;
        private string _remark;
        #endregion 

        #region 构造
        public TableCategory()
        {
            _name               = null;
            _minConsumption     = 0;
            _state              = 0;
            _remark             = null;
        }

        public TableCategory(string name)
        {
            _name               = name;
            _minConsumption     = 0;
            _state              = 0;
            _remark             = null;
        }

        public TableCategory(string name, int minConsumption)
        {
            _name               = name;
            _minConsumption     = minConsumption;
            _state              = 0;
            _remark             = null;
        }

        public TableCategory(string name, int minConsumption, int state)
        {
            _name               = name;
            _minConsumption     = minConsumption;
            _state              = state;
            _remark             = null;
        }

        public TableCategory(string name, int minConsumption, int state, string remark)
        {
            _name               = name;
            _minConsumption     = minConsumption;
            _state              = state;
            _remark             = remark;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int MinConsumption
        {
            get { return _minConsumption; }
            set { _minConsumption = value; }
        }

        public int State
        {
            get { return _state; }
            set { _state = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
